<link rel="stylesheet" type="text/css" href="../core/resource/css/coupon.css">
<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/coupon-new.css?v=202306">
<div ng-include="sys_html('common/_header')"></div>
<style>
.order-express-page .express-list .fui-list-inner {
    padding: 0.5rem 1rem;
}
.order-express-page .express-list .fui-list .fui-list-inner:before {
    border-left: 0.1rem solid #c9c9c9;
    top: 0;
    left: 0.2rem;
    z-index: 108;
}
.order-express-page .express-list .fui-list-inner .text.step:before {
    content: " ";
    width: 0;
    height: 0.3rem;
    width: 0.3rem;
    background: #aaa;
    border: 0.1rem solid #c9c9c9;
    border-radius: 0.5rem;
    position: absolute;
    top: 0.25rem;
    left: -0.9rem;
    z-index: 108;
}
</style>
<div class="fui-page">	<div class="jy2-headertopbg">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">优惠券详情</div>
			</div>
	</div>
	<div class="fui-content coupon-page jy2-headertop">		<div class="coupon-detail {{pagedata.coupon.color}}">			<div class="detail-dots"></div>			<div class="detail-head" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">				<div class="inner">					<div class="title">						<div class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">{{pagedata.coupon.title}}</div>					</div>					<div ng-if="pagedata.coupon.backtype==2" class="childs">						<div class="child">							<div class="subtitle"> {{pagedata.coupon.title2}}</div>							<div class="bigtitle">立返</div>						</div>						<div class="child">							<div ng-if="pagedata.coupon.backmoney>0" class="subtitle"><span class="bold">{{pagedata.coupon.backmoney}} </span><span class="threetitle">元余额</span></div>							<div ng-if="pagedata.coupon.backcredit>0" class="subtitle"><span class="bold">{{pagedata.coupon.backcredit}} </span><span class="threetitle">积分</span></div>							<div ng-if="pagedata.coupon.backredpack>0" class="subtitle"><span class="bold">{{pagedata.coupon.backredpack}} </span><span class="threetitle">元红包</span></div>						</div>					</div>					<div ng-if="pagedata.coupon.backtype!=2" class="bigtitle"> {{pagedata.coupon.title3}}</div>					<div ng-if="pagedata.coupon.backtype!=2" class="subtitle"> {{pagedata.coupon.title2}}</div>					<div class="usetime">						<div class="">						<div ng-if="pagedata.coupon.timelimittype==0" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:							永久有效						</div>						<div ng-if="pagedata.coupon.timelimittype==1" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:							领取后 {{pagedata.coupon.timedays}} 天内有效						</div>						<div ng-if="pagedata.coupon.timelimittype==2" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:							{{pagedata.coupon.limittimes.tend}}						</div>							</div>					</div>				</div>			</div>			<div class="detail-body">				<div class="block">					<div ng-if="pagedata.coupon.merchid!=0" class="title">使用商铺</div>					<div class="text" ng-if="pagedata.coupon.merchid!=0" >						限购[{{pagedata.coupon.merchname || '无'}}]店铺商品 
						  <span ng-click="access_json('jy_merch/myshop//id='+pagedata.coupon.merchid)" class="label label-info">前往店铺</span>					</div>					<div class="title">使用说明</div>					<div class="text">						<div ng-if="pagedata.coupon.isdescsys==1">							<div ng-if="pagedata.coupon.coupontype==2">								{{pagedata.setting.buydesc}}							</div>							<div ng-if="pagedata.coupon.coupontype==1">								{{pagedata.setting.rechargedesc}}							</div>						</div>						<div ng-if="pagedata.coupon.isdescsys==0">							{{pagedata.coupon.desc}}						</div>					</div>				</div>				<div class="block">					<div class="title">有效期限</div>					<div class="text">
						<div ng-if="pagedata.coupon.timelimittype==0" class="text">有效期:							永久有效						</div>						<div ng-if="pagedata.coupon.timelimittype==1" class="text">有效期:							领取后 {{pagedata.coupon.timedays}} 天内有效</br>
							{{pagedata.coupon.time}}						</div>						<div ng-if="pagedata.coupon.timelimittype==2" class="text">							{{pagedata.coupon.limittimes.tstart}}~{{pagedata.coupon.limittimes.tend}}						</div>						<div  ng-if="pagedata.coupon.merchid!=0" >						限购[{{pagedata.coupon.merchname}}]店铺商品						</div>					</div>				</div>				<div class="block" ng-if="pagedata.coupon.coupontype!=3">					<div class="title">使用限制</div>						<div ng-if="pagedata.coupon.limitusetype==1" class="text">不允许与促销优惠同时使用</div>						<div ng-if="pagedata.coupon.limitusetype==2" class="text">不允许与会员折扣同时使用</div>						<div ng-if="pagedata.coupon.limitusetype==3" class="text">不允许与促销优惠和会员折扣同时使用</div>						<div ng-if="pagedata.coupon.limitgoodtype==1" class="text">允许以下商品使用:</div>						<div ng-if="pagedata.coupon.limitgoodtype==1">
							<span ng-repeat="item in pagedata.goods" class="jylabel jylabel-red" style="margin:0.1rem;line-height:2">{{item.title}}</span>
						</div>						<div  ng-if="pagedata.coupon.limitgoodcatetype==1"  class="text">允许以下商品分类使用:</div>
						<div>
							<span ng-repeat="item in pagedata.group" class="jylabel jylabel-red" style="margin:0.1rem;line-height:2">{{item.title}}</span>
						  </div>						<div ng-if="pagedata.coupon.limitgoodtype==0 && pagedata.coupon.limitgoodcatetype==0 &&  pagedata.coupon.limitusetype==0 &&  pagedata.coupon.coupontype!=2" class="text">无</div>				</div>
				<div class="block" ng-if="pagedata.coupon.coupontype==3">
				  <div class="title">内含礼品</div>
				  <div class="order-express-page">
						<div class="fui-list-group express-list" style="background:none;padding:0;margin-top:0">
								<div ng-repeat="item in pagedata.coupon.reward" class="fui-list">
									<div class="fui-list-inner">
									<div class="text step" style="color:red">{{item.title}}</div>
										<div class="text time">{{item.typetitle}}</div>
										<div class="text gray">{{item.info}}</div>
									</div>
								</div>
						</div>
					</div>
				  </div>			</div>		</div>	</div>	<div class="fui-navbar">						<div class="nav-item btn btn-gray"  ng-if="pagedata.coupon.past==1" >			已过期		</div>		<div ng-if="(pagedata.coupon.coupontype!=3 || pagedata.coupon.ordersn) && pagedata.coupon.isuse==1" class="nav-item btn btn-gray">			已使用		</div>
		<div ng-if="pagedata.coupon.coupontype==3 && !pagedata.coupon.ordersn && pagedata.coupon.isuse==1" class="nav-item btn btn-{{pagedata.coupon.color}}">
			<a href="javascript:;" ng-click="post({},'jy_weishop/coupon.mydetail/getgoods/getlogid='+pagedata.getlogid)"  style="color:#ffffff;">
				领取商品
			</a>
		</div>		<div class="nav-item btn btn-{{pagedata.coupon.color}}" ng-if="pagedata.coupon.isuse!=1 && pagedata.coupon.past!=1" >				<a ng-if="pagedata.coupon.coupontype==2"  href="javascript:;" ng-click="access_json('core/member.recharge/')"  style="color:#ffffff;">					立即去充值				</a>				<a ng-if="pagedata.coupon.coupontype==1 && pagedata.coupon.merchid==0"  href="javascript:;" ng-click="access_json(main.menus[0].action || 'jy_weishop/index/main')"  style="color:#ffffff;">					立即使用				</a>
				<a ng-if="pagedata.coupon.coupontype==1 && pagedata.coupon.merchid!=0"  href="javascript:;" ng-click="access_json('jy_merch/myshop//id='+pagedata.coupon.merchid)"  style="color:#ffffff;">
					立即使用
				</a>
				<a ng-if="pagedata.coupon.coupontype==3"  href="javascript:;" ng-click="post({},'jy_weishop/coupon.mydetail/getliping/getlogid='+pagedata.getlogid)"  style="color:#ffffff;">
					领取礼品
				</a>
		</div>
		<div class="nav-item btn btn-{{pagedata.coupon.color}}" style="opacity: 0.78;" ng-if="pagedata.coupon.coupontype==1 && pagedata.coupon.isuse!=1 && pagedata.coupon.past!=1" >
			<a href="javascript:;" ng-click="pagedata.showhexiao=true;pagedata.show_verify(pagedata.coupon.hexiaourl)" style="color:#ffffff;">核销</a>
		</div>
		<div class="nav-item btn btn-{{pagedata.coupon.color}}" style="opacity: 0.68;" ng-if="pagedata.coupon.issong==1 && pagedata.coupon.coupontype==1 && pagedata.coupon.isuse!=1 && pagedata.coupon.past!=1" >
			<a href="javascript:;" ng-click="pagedata.show_song()" style="color:#ffffff;">转送</a>
		</div>	</div>
	<div ng-if="pagedata.showhexiao" class="popup">
			<div class="popup-body">
			<div class="popup-center" style="border-radius:0.2rem;width: 80%;">
				<i class="closed icon icon-cuowu" style="font-size:46rpx;" ng-click="pagedata.showhexiao=false"></i>
				<div class="fui-page-title" style="margin-top:1rem">请将二维码出示给商家</div>
				<div class="fui-page-subtitle" style="margin: 0.6rem;margin-top:0.1rem;width:auto">温馨提示：为了更好的保护您利益,请不要轻易将您的核销二维码泄露给他人</div>
				<div class="c" style="padding:0.5rem;margin-bottom:0.5rem" id="show_verify_ewm">
				</div>
			</div>
			</div>
	</div>
	<!--分享弹层-->
	<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;top:0">
		<div id="cover">
			<div class='fui-mask-m visible'></div>
			<div class='arrow'></div>
			<div class='content'>请点击右上角<br/>通过【发送给朋友】<br/>分享优惠券给好友！</div>
		</div>
	</div>
	</div></div>
<script type="text/javascript">
scope.pagedata.show_verify=function(url){
	scope.tool.qr(url,'show_verify_ewm',150)
}
scope.pagedata.show_song=function(){
	$('#showsharecover').modal();
}
</script>